package ystp.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import ystp.model.Xinguotan;
import ystp.model.XinguotanExample;

public interface XinguotanMapper {
    List<Map<String,Object>> findXinguotanPagingByXiangmuId(@Param("xiangmuid") String ppxiangmuId, @Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    List<Map<String,Object>> findZhuankefenzuByXiangmuid(@Param("xiangmuid") String ppxiangmuId);

    List<Map<String,Object>> findShenqingkeshiByXiangmuid(@Param("xiangmuid") String ppxiangmuId);

    Object countXinguotanByXiangmuId(@Param("xiangmuid") String ppxiangmuId);

    List<Map<String,Object>> findXinguotanBiaojueByXiangmuId(@Param("xiangmuid") String ppxiangmuId, @Param("userid") String ppuserId, @Param("yaopinmingcheng") String ppyaopinmingcheng, @Param("zhuankefenzu") String ppzhuankefenzu, @Param("shenqingkeshi") String ppshenqingkeshi, @Param("startindex") int ppStartIndex, @Param("pagesize") int ppPageSize);

    Object countXinguotanBiaojueByXiangmuId(@Param("xiangmuid") String ppxiangmuId,@Param("userid") String ppuserId,@Param("yaopinmingcheng") String ppyaopinmingcheng,@Param("zhuankefenzu") String ppzhuankefenzu,@Param("shenqingkeshi") String ppshenqingkeshi);

    int countByExample(XinguotanExample example);

    int deleteByExample(XinguotanExample example);

    int deleteByPrimaryKey(String id);

    int insert(Xinguotan record);

    int insertSelective(Xinguotan record);

    List<Xinguotan> selectByExample(XinguotanExample example);

    Xinguotan selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Xinguotan record, @Param("example") XinguotanExample example);

    int updateByExample(@Param("record") Xinguotan record, @Param("example") XinguotanExample example);

    int updateByPrimaryKeySelective(Xinguotan record);

    int updateByPrimaryKey(Xinguotan record);
}